#include "texture.h"
#include "canvas.h"

using namespace krryn::view;

texture::texture(canvas *a_Canvas, size_t a_TextureUnit)
	: m_Canvas(a_Canvas), m_WrapU(texture_repeat), m_WrapV(texture_repeat), m_TextureUnit(a_TextureUnit) {}

texture::~texture(){
	delete m_Canvas, m_Canvas = 0;
}

void texture::set_texture_wrap(texture_wrap a_WrapU, texture_wrap a_WrapV){
	m_WrapU = a_WrapU;
	m_WrapV = a_WrapV;
}